﻿#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable:6031)

//递归实现n的k次方
//仅支持n为整数，k为整数
#include <stdio.h>

int MyPower(int base, int exponential)
{
	if (exponential >= 0)
	{
		if (exponential == 1)
			return base;
		if (exponential == 0)
			return 1;
		return base * MyPower(base, exponential - 1);
	}
	
}

int main()
{
	int n = 0;
	int k = 0;
	int result = 0;
	scanf("%d %d", &n, &k);

	result = MyPower(n, k);

	printf("%d", result);

	return 0;
}